5f5a6c93d57096ca2a51207f422182a32e8a72f3,src/main/java/org/jboss/logmanager/handlers/SizeRotatingFileHandler.java,SizeRotatingFileHandler,rotate,#File#,257

Before Change


            Files.deleteIfExists(Paths.get(newBaseFilename + "." + maxBackupIndex));
            for (int i = maxBackupIndex - 1; i >= 1; i--) {
                final Path src = Paths.get(newBaseFilename + "." + i);
                if (Files.notExists(src)) {
                    break;
                }
                final Path target = Paths.get(newBaseFilename + "." + (i + 1));
                Files.move(src, target, StandardCopyOption.REPLACE_EXISTING);
            }

After Change


            Files.deleteIfExists(Paths.get(file.getAbsolutePath() + "." + maxBackupIndex));
            for (int i = maxBackupIndex - 1; i >= 1; i--) {
                final Path src = Paths.get(file.getAbsolutePath() + "." + i);
                if (Files.exists(src)) {
                    final Path target = Paths.get(file.getAbsolutePath() + "." + (i + 1));
                    Files.move(src, target, StandardCopyOption.REPLACE_EXISTING);
                }